package org.nuist.service.snapshot;

import org.nuist.pojo.Snapshot;
import org.nuist.pojo.User;

import java.util.List;

public interface SnapshotService {

    /**
     * 保存快照
     * @author DYH
     * @param snapshot
     */
    public void save(Snapshot snapshot);

    /**
     * 删除快照
     * @param snapshot
     */
    public void delete(Snapshot snapshot);

    /**
     * 查询全部快照
     * @return List
     */
    public List<Snapshot> findAll();

    /**
     * 根据名字查询快照
     * @param name
     * @return Snapshot
     */
    public Snapshot findSnapshotByName(String name);

    /**
     * 根据id查询快照
     * @param id
     * @return Snapshot
     */
    public Snapshot findSnapshotById(Integer id);

}
